package cn.brilliantfuture.commentry.entity;

// Generated 2011-11-3 13:34:34 by Hibernate Tools 3.3.0.GA

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.validator.Length;

/**
 * RefundDeliveryRecords generated by hbm2java
 */
@Entity
@Table(name = "refund_delivery_records", catalog = "cabinet")
public class RefundDeliveryRecords implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	private Integer refundDeliveryRecordId;
	private String orderInfoNumber;
	private String cardNumber;
	private String rfidSn;
	private String purchaserName;
	private String location;
	private Integer gridNumber;
	private Date deliveryTime;

	public RefundDeliveryRecords() {
	}

	public RefundDeliveryRecords(String orderInfoNumber, String cardNumber,
			String rfidSn, String purchaserName, String location,
			Integer gridNumber, Date deliveryTime) {
		this.orderInfoNumber = orderInfoNumber;
		this.cardNumber = cardNumber;
		this.rfidSn = rfidSn;
		this.purchaserName = purchaserName;
		this.location = location;
		this.gridNumber = gridNumber;
		this.deliveryTime = deliveryTime;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "refund_delivery_record_id", unique = true, nullable = false)
	public Integer getRefundDeliveryRecordId() {
		return this.refundDeliveryRecordId;
	}

	public void setRefundDeliveryRecordId(Integer refundDeliveryRecordId) {
		this.refundDeliveryRecordId = refundDeliveryRecordId;
	}

	@Column(name = "order_info_number", length = 45)
	@Length(max = 45)
	public String getOrderInfoNumber() {
		return this.orderInfoNumber;
	}

	public void setOrderInfoNumber(String orderInfoNumber) {
		this.orderInfoNumber = orderInfoNumber;
	}

	@Column(name = "card_number", length = 45)
	@Length(max = 45)
	public String getCardNumber() {
		return this.cardNumber;
	}

	public void setCardNumber(String cardNumber) {
		this.cardNumber = cardNumber;
	}

	@Column(name = "rfid_sn", length = 45)
	@Length(max = 45)
	public String getRfidSn() {
		return this.rfidSn;
	}

	public void setRfidSn(String rfidSn) {
		this.rfidSn = rfidSn;
	}

	@Column(name = "purchaser_name", length = 45)
	@Length(max = 45)
	public String getPurchaserName() {
		return this.purchaserName;
	}

	public void setPurchaserName(String purchaserName) {
		this.purchaserName = purchaserName;
	}

	@Column(name = "location", length = 200)
	@Length(max = 200)
	public String getLocation() {
		return this.location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	@Column(name = "grid_number")
	public Integer getGridNumber() {
		return this.gridNumber;
	}

	public void setGridNumber(Integer gridNumber) {
		this.gridNumber = gridNumber;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "delivery_time", length = 19)
	public Date getDeliveryTime() {
		return this.deliveryTime;
	}

	public void setDeliveryTime(Date deliveryTime) {
		this.deliveryTime = deliveryTime;
	}

}
